package com.metaverse.backend.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;


@Data
@AllArgsConstructor
@NoArgsConstructor
@RedisHash("UserToken")
public class UserToken {

    @Id
    private String openid;//用户唯一标识

    private String token;

    /**
     * 房间id
     */
    private String roomId;

}
